derivative of an exponential function